<form id="pollBlock<{$app.poll.poll_id}>" class="pollBlockVote">
<input type="hidden" name="poll_id" value="<{$app.poll.poll_id}>" />
<p class="question"><strong><{$app.poll.question}></strong></p>
<table class="outer2">
<{foreach from=$app.poll.options item=o}>
<tr class="<{cycle values='even,odd'}>">
	<th>
	<{if $app.poll.multiple}>
	<input type="checkbox" name="option[<{$o.option_num}>]" value="<{$o.option_num}>" id="pollOption<{$app.poll.poll_id}>-<{$o.option_num}>" <{if $app.poll.op_logs[$o.option_num]}>checked<{/if}>>&nbsp;
	<{else}>
	<input type="radio" name="option" value="<{$o.option_num}>" id="pollOption<{$app.poll.poll_id}>-<{$o.option_num}>" <{if $app.poll.op_logs[$o.option_num]}>checked<{/if}>>&nbsp;
	<{/if}>
	</th>
	<td><label for="pollOption<{$app.poll.poll_id}>-<{$o.option_num}>"><{$o.option_text}></label></td>
</tr>
<{/foreach}>
</table>
<div><{$smarty.const._MI_OPINION_BLOCK_COM_PLZ}></div>
<label for="pollBlockComment<{$app.poll.poll_id}>">
	<textarea name="vote_comment" class="pollBlockComment" id="pollBlockComment<{$app.poll.poll_id}>" onFocus="Vote.block.onFocus(this,'<{$xoops_url}>')" onBlur="Vote.block.onBlur(this,'<{$xoops_url}>');"></textarea>
</label>



<div class="navi">
	<input type="button" value="<{$smarty.const._MI_OPINION_VOTE}>" id="post_do_<{$app.poll.poll_id}>" onclick="Vote.block.onPost(<{$app.poll.poll_id}>, '<{$app.dirname}>', '<{$xoops_url}>')" <{if $app.has_log}>disabled<{/if}>/>
	<span id="show_log_<{$app.poll.poll_id}>" style="display:none;">
		<a href="<{$xoops_url}>/modules/<{$app.dirname}>/result.php?poll_id=<{$app.poll.poll_id}>"><{$smarty.const._MI_OPINION_SHOW_RESULT}></a>
	</span>
</div>
</form>
<{if $app.poll.has_log}>
<script>
	$('pollBlockComment<{$app.poll.poll_id}>').value = "<{$app.poll.comment}>";
	Form.getElements('pollBlock<{$app.poll.poll_id}>').each(function(ele){ele.disabled=true;}); // disabled
	$('pollBlockComment<{$app.poll.poll_id}>').className = 'pollBlockVoted';
	Element.show("show_log_<{$app.poll.poll_id}>");
</script>
<{/if}>
<{if !$app.poll.allow_guest && !$xoops_isuser}>
<script>
	Form.getElements('pollBlock<{$app.poll.poll_id}>').each(function(ele){ele.disabled=true;}); // disabled
	$('pollBlockComment<{$app.poll.poll_id}>').className = 'pollBlockDisable';
</script>
<div><{$smarty.const._MI_OPINION_REGISTER_PLZ}></div>
<{/if}>
